/*
 * CourseDb.h
 *
 *  Created on: 3 May 2010
 *      Author: vastsor
 *
 */

#ifndef COURSEDB_H_
#define COURSEDB_H_

#include "ICourseDb.h"
//v1.1
#include "OdbcConnectionSingleton.h"
#include "ConvertType.h"
class CourseDb: public ICourseDb {
public:
	CourseDb(const string *dbName, const string *user, const string *passwd);
	virtual ~CourseDb();
	string *getCode() const;
	string *getCode(const string *title) const;
protected:
	//check if table is empty
	bool isEmpty()const;
};

#endif /* COURSEDB_H_ */
